package com.nanfang51g3.ckz.ui.index;

import android.content.Context;
import android.location.Location;

import com.nanfang51g3.ckz.domain.IndexBean;
import com.nanfang51g3.ckz.domain.RightTypeBean;
import com.nanfang51g3.ckz.ui.base.IPresenter;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/4/13.
 */
public interface IndexContract {

    interface View {


        Context getContext();

        void showProgress();

        void dismissProgress();

        void showSuccess(List<IndexBean> indexBeen, ArrayList<RightTypeBean> strings, boolean pullDown, String isType);

        void showLocationValue(String city);

        void showMessage(String message, String tName);


    }


    interface IndexActionsListener  extends IPresenter {

        void requestIndex(int page, int limit, boolean pullDown);

        void requestIndex(int page, int limit, boolean pullDown, String name);


        void loginSuccess(String message);

        void loginError(String message);

        void initLocation(Context context, LocationServerListener locationListener);

        void updateWithNewLocation(Location location);



    }
}
